# Start with a Python 3.9 base image
FROM python:3.9-slim

MAINTAINER chennian
ENV TZ="Asia/Shanghai"
ENV TimeZone="Asia/Shanghai"
ENV LANG=C.UTF-8

COPY common/sources.list /etc/apt/sources.list
COPY common/resolv.conf /etc/resolv.conf


# 设置环境变量，指定Python使用国内源  
ENV PYTHONPIP_NO_CACHE_DIR=off  
ENV PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple

# Install necessary libraries for GUI support
RUN apt-get update 
RUN apt-get install -y python3-tk 
RUN apt-get install -y x11-apps
RUN apt-get install -y vim
RUN apt-get install -y gdb 

# Install the project dependencies
ENTRYPOINT ["/bin/bash"]

#WORKDIR /app
#COPY ./requirements.txt /app/
#RUN pip install --no-cache-dir -r /app/requirements.txt
